X-MimeOLE: Produced By Microsoft Exchange V6.5
Received: by onstor-exch02.onstor.net 
	id <01C70AC3.C9A4DB08@onstor-exch02.onstor.net>; Fri, 17 Nov 2006 19:44:02 -0800
MIME-Version: 1.0
Content-Type: multipart/alternative;
	boundary="----_=_NextPart_001_01C70AC3.C9A4DB08"
Content-class: urn:content-classes:message
Subject: RE: GDB over Terminal Cable
Date: Fri, 17 Nov 2006 19:44:01 -0800
Message-ID: <BB375AF679D4A34E9CA8DFA650E2B04E016DAC63@onstor-exch02.onstor.net>
In-Reply-To: <BB375AF679D4A34E9CA8DFA650E2B04E0A93BD@onstor-exch02.onstor.net>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: GDB over Terminal Cable
thread-index: AccKu3gwIn37TG0dRUO4VrS0i4GSXgAAQiWQAAAbAFAAAIfQkA==
From: "Eric Barrett" <eric.barrett@onstor.com>
To: "dl-Engineering" <dl-engineering@onstor.com>

This is a multi-part message in MIME format.

------_=_NextPart_001_01C70AC3.C9A4DB08
Content-Type: text/plain;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

We figured it out.  In the directory against
/n/build-trees/BSD/openbsd-111506-133-dbg/src/sys/arch/pmonmips/compile/
BOBCAT/:

bsd is the binary loaded onto the system;
bsd.gdb is the symbol table provided to the MIPS gdb.

bsd.gdb is about 10x the size of bsd.



> _____________________________________________=20
> From: 	Larry Scheer =20
> Sent:	Friday, November 17, 2006 7:01 PM
> To:	Ed Kwan; Huy Duong; Anatoly Shiroglazov; Andrew LeFebvre; Andy
> Sharp; Angela Elliott; Bill Fenech; Bill Nadzam; Brian DeForest; Brian
> Stark; Caeli Collins; Carlos Mora; Charissa Willard; Cheryl Lewis;
> Chris Vandever; Dan Stein; Danqing Jin; Dave Limato; dl-Engineering;
> dl-Software; Eric Barrett; Eric Crutchlow; Erik Palomba; Henry Lau;
> Ian Brown; James Kahn; Jay Michlin; Jerry Lopatin; Jobi Ariyamannil;
> John Keiffer; John Klokkenga; John Rogers; John VanderWerf; Jonathan
> Goldick; Ken Renshaw; Mary Li; Maxim Kozlovsky; May Ma; Mike Lee;
> Nagendra Subramanya; Narayan Venkat; Patrick Haverty; Paul Hammer;
> Raghu Murthy; Raj Kumar; Ranga Nathan; Rendell Fong; Rex Yuan; Rick
> Lund; Ron Bhanukitsiri; Sandrine Boulanger; Shamsudeen Jeseem; Shawn
> Currin; Summer Ryman; Tim Gardner; Vikas Saini; Warren Gale; Wencheng
> Chai; Xiaobing Zhang; Yuvarani Cothandaraman
> Subject:	RE: GDB over Terminal Cable
>=20
> gdb bsd=20
> target remote /dev/ttyS0
>=20
> gdb needs to be the application found in the
> openbsd/usr/cross/pmonmips/usr/bin directory for that release
> bsd need to be the debug version of the kernel (not sure where you
> stored that but it is typically in the Release subdirectory of
> nfx-tree/Build/...
>=20
> Larry
> _____________________________________________
> From: Ed Kwan=20
> Sent: Friday, November 17, 2006 6:55 PM
> To: Huy Duong; Anatoly Shiroglazov; Andrew LeFebvre; Andy Sharp;
> Angela Elliott; Bill Fenech; Bill Nadzam; Brian DeForest; Brian Stark;
> Caeli Collins; Carlos Mora; Charissa Willard; Cheryl Lewis; Chris
> Vandever; Dan Stein; Danqing Jin; Dave Limato; dl-Engineering;
> dl-Software; Eric Barrett; Eric Crutchlow; Erik Palomba; Henry Lau;
> Ian Brown; James Kahn; Jay Michlin; Jerry Lopatin; Jobi Ariyamannil;
> John Keiffer; John Klokkenga; John Rogers; John VanderWerf; Jonathan
> Goldick; Ken Renshaw; Larry Scheer; Mary Li; Maxim Kozlovsky; May Ma;
> Mike Lee; Nagendra Subramanya; Narayan Venkat; Patrick Haverty; Paul
> Hammer; Raghu Murthy; Raj Kumar; Ranga Nathan; Rendell Fong; Rex Yuan;
> Rick Lund; Ron Bhanukitsiri; Sandrine Boulanger; Shamsudeen Jeseem;
> Shawn Currin; Summer Ryman; Tim Gardner; Vikas Saini; Warren Gale;
> Wencheng Chai; Xiaobing Zhang; Yuvarani Cothandaraman
> Subject: RE: GDB over Terminal Cable
>=20
> Hi Huy,
>=20
> According to ttyS(4) man page on my Linux box, the serial lines are
> /dev/ttyS[0-3], not /dev/tty0.
> Hope this helps...
>=20
> Ed
>=20
> _____________________________________________
> From: Huy Duong=20
> Sent: Friday, November 17, 2006 6:44 PM
> To: Anatoly Shiroglazov; Andrew LeFebvre; Andy Sharp; Angela Elliott;
> Bill Fenech; Bill Nadzam; Brian DeForest; Brian Stark; Caeli Collins;
> Carlos Mora; Charissa Willard; Cheryl Lewis; Chris Vandever; Dan
> Stein; Danqing Jin; Dave Limato; dl-Engineering; dl-Software; Ed Kwan;
> Eric Barrett; Eric Crutchlow; Erik Palomba; Henry Lau; Ian Brown;
> James Kahn; Jay Michlin; Jerry Lopatin; Jobi Ariyamannil; John
> Keiffer; John Klokkenga; John Rogers; John VanderWerf; Jonathan
> Goldick; Ken Renshaw; Larry Scheer; Mary Li; Maxim Kozlovsky; May Ma;
> Mike Lee; Nagendra Subramanya; Narayan Venkat; Patrick Haverty; Paul
> Hammer; Raghu Murthy; Raj Kumar; Ranga Nathan; Rendell Fong; Rex Yuan;
> Rick Lund; Ron Bhanukitsiri; Sandrine Boulanger; Shamsudeen Jeseem;
> Shawn Currin; Summer Ryman; Tim Gardner; Vikas Saini; Warren Gale;
> Wencheng Chai; Xiaobing Zhang; Yuvarani Cothandaraman
> Subject: GDB over Terminal Cable
>=20
> Does anyone know how to use GDB over the serial console to the SSC?
> I have verified that I am using the correct GDB
>=20
> This is what I done so far:
>=20
> 1.	set remotebaud 57600
> 2.	remote target /dev/tty0
>=20
> then I get "connection is not open"
>=20
> We have a customer that does not that a terminal server, and this
> needs to be setup on site.
>=20
> =20
>=20
> -------------------------------------------
> Huy Duong
> ONStor Level 3 TSE
> Phone 408.963.2478
> Cell    408.431.6803
> http://support.onstor.com/
>=20

------_=_NextPart_001_01C70AC3.C9A4DB08
Content-Type: text/html;
	charset="us-ascii"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV=3D"Content-Type" CONTENT=3D"text/html; =
charset=3Dus-ascii">
<META NAME=3D"Generator" CONTENT=3D"MS Exchange Server version =
6.5.7650.28">
<TITLE>RE: GDB over Terminal Cable</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=3D2 FACE=3D"Arial">We figured it out.&nbsp; In the =
directory against =
/n/build-trees/BSD/openbsd-111506-133-dbg/src/sys/arch/pmonmips/compile/B=
OBCAT/:</FONT></P>

<P><FONT SIZE=3D2 FACE=3D"Arial">bsd is the binary loaded onto the =
system;</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">bsd.gdb is the symbol table provided =
to the MIPS gdb.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">bsd.gdb is about 10x the size of =
bsd.</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=3D1 =
FACE=3D"Tahoma">_____________________________________________ </FONT>

<BR><B><FONT SIZE=3D1 FACE=3D"Tahoma">From: &nbsp;</FONT></B> <FONT =
SIZE=3D1 FACE=3D"Tahoma">Larry Scheer&nbsp; </FONT>

<BR><B><FONT SIZE=3D1 FACE=3D"Tahoma">Sent:&nbsp;&nbsp;</FONT></B> <FONT =
SIZE=3D1 FACE=3D"Tahoma">Friday, November 17, 2006 7:01 PM</FONT>

<BR><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">To:&nbsp;&nbsp;&nbsp;&nbsp;</FONT></B> <FONT SIZE=3D1 =
FACE=3D"Tahoma">Ed Kwan; Huy Duong; Anatoly Shiroglazov; Andrew =
LeFebvre; Andy Sharp; Angela Elliott; Bill Fenech; Bill Nadzam; Brian =
DeForest; Brian Stark; Caeli Collins; Carlos Mora; Charissa Willard; =
Cheryl Lewis; Chris Vandever; Dan Stein; Danqing Jin; Dave Limato; =
dl-Engineering; dl-Software; Eric Barrett; Eric Crutchlow; Erik Palomba; =
Henry Lau; Ian Brown; James Kahn; Jay Michlin; Jerry Lopatin; Jobi =
Ariyamannil; John Keiffer; John Klokkenga; John Rogers; John VanderWerf; =
Jonathan Goldick; Ken Renshaw; Mary Li; Maxim Kozlovsky; May Ma; Mike =
Lee; Nagendra Subramanya; Narayan Venkat; Patrick Haverty; Paul Hammer; =
Raghu Murthy; Raj Kumar; Ranga Nathan; Rendell Fong; Rex Yuan; Rick =
Lund; Ron Bhanukitsiri; Sandrine Boulanger; Shamsudeen Jeseem; Shawn =
Currin; Summer Ryman; Tim Gardner; Vikas Saini; Warren Gale; Wencheng =
Chai; Xiaobing Zhang; Yuvarani Cothandaraman</FONT></P>

<P><B><FONT SIZE=3D1 =
FACE=3D"Tahoma">Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</FONT>=
</B> <FONT SIZE=3D1 FACE=3D"Tahoma">RE: GDB over Terminal Cable</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">gdb bsd </FONT>

<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">target remote =
/dev/ttyS0</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">gdb needs to be the =
application found in the openbsd/usr/cross/pmonmips/usr/bin directory =
for that release</FONT>

<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">bsd need to be the =
debug version of the kernel (not sure where you stored that but it is =
typically in the Release subdirectory of =
nfx-tree/Build/&#8230;</FONT></P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">Larry</FONT>

<BR><FONT SIZE=3D2 =
FACE=3D"Tahoma">_____________________________________________<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">From:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> Ed Kwan<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">Sent:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> Friday, November 17, 2006 6:55 PM<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">To:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> Huy Duong; Anatoly Shiroglazov; Andrew LeFebvre; Andy =
Sharp; Angela Elliott; Bill Fenech; Bill Nadzam; Brian DeForest; Brian =
Stark; Caeli Collins; Carlos Mora; Charissa Willard; Cheryl Lewis; Chris =
Vandever; Dan Stein; Danqing Jin; Dave Limato; dl-Engineering; =
dl-Software; Eric Barrett; Eric Crutchlow; Erik Palomba; Henry Lau; Ian =
Brown; James Kahn; Jay Michlin; Jerry Lopatin; Jobi Ariyamannil; John =
Keiffer; John Klokkenga; John Rogers; John VanderWerf; Jonathan Goldick; =
Ken Renshaw; Larry Scheer; Mary Li; Maxim Kozlovsky; May Ma; Mike Lee; =
Nagendra Subramanya; Narayan Venkat; Patrick Haverty; Paul Hammer; Raghu =
Murthy; Raj Kumar; Ranga Nathan; Rendell Fong; Rex Yuan; Rick Lund; Ron =
Bhanukitsiri; Sandrine Boulanger; Shamsudeen Jeseem; Shawn Currin; =
Summer Ryman; Tim Gardner; Vikas Saini; Warren Gale; Wencheng Chai; =
Xiaobing Zhang; Yuvarani Cothandaraman<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">Subject:</FONT></B><FONT =
SIZE=3D2 FACE=3D"Tahoma"> RE: GDB over Terminal Cable</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">Hi Huy,</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">According to ttyS(4) =
man page on my Linux box, the serial lines are /dev/ttyS[0-3], not =
/dev/tty0.</FONT>

<BR><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">Hope this =
helps&#8230;</FONT>
</P>

<P><FONT COLOR=3D"#000080" SIZE=3D2 FACE=3D"Arial">Ed</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Tahoma">_____________________________________________<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">From:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> Huy Duong<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">Sent:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> Friday, November 17, 2006 6:44 PM<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">To:</FONT></B><FONT SIZE=3D2 =
FACE=3D"Tahoma"> Anatoly Shiroglazov; Andrew LeFebvre; Andy Sharp; =
Angela Elliott; Bill Fenech; Bill Nadzam; Brian DeForest; Brian Stark; =
Caeli Collins; Carlos Mora; Charissa Willard; Cheryl Lewis; Chris =
Vandever; Dan Stein; Danqing Jin; Dave Limato; dl-Engineering; =
dl-Software; Ed Kwan; Eric Barrett; Eric Crutchlow; Erik Palomba; Henry =
Lau; Ian Brown; James Kahn; Jay Michlin; Jerry Lopatin; Jobi =
Ariyamannil; John Keiffer; John Klokkenga; John Rogers; John VanderWerf; =
Jonathan Goldick; Ken Renshaw; Larry Scheer; Mary Li; Maxim Kozlovsky; =
May Ma; Mike Lee; Nagendra Subramanya; Narayan Venkat; Patrick Haverty; =
Paul Hammer; Raghu Murthy; Raj Kumar; Ranga Nathan; Rendell Fong; Rex =
Yuan; Rick Lund; Ron Bhanukitsiri; Sandrine Boulanger; Shamsudeen =
Jeseem; Shawn Currin; Summer Ryman; Tim Gardner; Vikas Saini; Warren =
Gale; Wencheng Chai; Xiaobing Zhang; Yuvarani Cothandaraman<BR>
</FONT><B><FONT SIZE=3D2 FACE=3D"Tahoma">Subject:</FONT></B><FONT =
SIZE=3D2 FACE=3D"Tahoma"> GDB over Terminal Cable</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">Does anyone know how to use GDB over =
the serial console to the SSC?</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">I have verified that I am using the =
correct GDB</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">This is what I done so far:</FONT>
</P>
<UL>
<OL TYPE=3D1>
<LI><FONT SIZE=3D2 FACE=3D"Arial">set remotebaud 57600</FONT></LI>

<LI><FONT SIZE=3D2 FACE=3D"Arial">remote target /dev/tty0</FONT></LI>
<BR>
</OL></UL>
<P><FONT SIZE=3D2 FACE=3D"Arial">then I get &#8220;connection is not =
open&#8221;</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">We have a customer that does not that a =
terminal server, and this needs to be setup on site.</FONT>
</P>

<P><FONT SIZE=3D2 FACE=3D"Arial">&nbsp;</FONT>
</P>

<P><FONT SIZE=3D2 =
FACE=3D"Arial">-------------------------------------------</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Huy Duong</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">ONStor Level 3 TSE</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Phone 408.963.2478</FONT>

<BR><FONT SIZE=3D2 FACE=3D"Arial">Cell&nbsp;&nbsp;&nbsp; =
408.431.6803</FONT>

<BR><A HREF=3D"http://support.onstor.com/"><U><FONT COLOR=3D"#0000FF" =
SIZE=3D2 FACE=3D"Arial">http://support.onstor.com/</FONT></U></A>
</P>

</BODY>
</HTML>
------_=_NextPart_001_01C70AC3.C9A4DB08--
